Socket
Socket
Sign inDemoInstall

unicode-match-property-ecmascript

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unicode-match-property-ecmascript

Match a Unicode property or property alias to its canonical property name per the algorithm used for RegExp Unicode property escapes in ECMAScript.


Version published
Weekly downloads
17M
decreased by-17.7%
Maintainers
1
Weekly downloads
 
Created

What is unicode-match-property-ecmascript?

The unicode-match-property-ecmascript npm package is used to match Unicode property escapes in ECMAScript regular expressions. It provides functionality to check if a given property and value are valid according to the ECMAScript specification and to canonicalize property and value aliases.

What are unicode-match-property-ecmascript's main functionalities?

Matching Unicode property escapes

This feature allows you to match Unicode property escapes by providing the alias of the property. It returns the canonical property name.

const matchProperty = require('unicode-match-property-ecmascript');

const property = matchProperty('sc');
// 'sc' is the alias for the 'Script' property
console.log(property); // 'Script'

Canonicalizing property names

This feature is used to canonicalize property names by providing an alias and getting back the canonical form of the property name.

const matchProperty = require('unicode-match-property-ecmascript');

const canonicalPropertyName = matchProperty('scx');
// 'scx' is the alias for the 'Script_Extensions' property
console.log(canonicalPropertyName); // 'Script_Extensions'

Other packages similar to unicode-match-property-ecmascript

Keywords

FAQs

Package last updated on 07 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc